package com.aivin.dao;

import com.aivin.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Created by Administrator on 2016/8/22.
 */
public interface IPointsDao {

    /**
     * 根据偏移量查找全部信息 。 分页查询
     * @return
     */
   public   List<PointsTask> queryAllPointsTaskFy(@Param("offset") int offset, @Param("limit") int limit) ;
    public   List<PointsTask> queryPointsTaskByUserIdFy(@Param("userId")int  userId , @Param("offset") int offset, @Param("limit") int limit) ;


    public int  publishTask (@PathVariable PointsTask bean );

    public int  publishReply (@PathVariable TaskReply bean );

    public   List<TaskReply>  queryReplyByTaskIdFy( @PathVariable int taskId ,   @PathVariable int offset ,@PathVariable int limit) ;

    public   List<TaskReply>  queryReplyByUserIdFy( @PathVariable int userId ,   @PathVariable int offset ,@PathVariable int limit) ;

}
